# -*- coding: utf-8 -*-
# @Time    : 2021/11/4 23:10
# @Author  : TangDagui
# @Email   : 3297364807@qq.com
# @File    : PythonOne.py
# @Software: PyCharm
def tian(n):
    a = 5 * n + 1
    for i in range(1, a + 1):
        if i % 5 == 1:
            print('+----' * n + '+')
        else:
            print('|    ' * n + '|')


if __name__ == '__main__':
    tian(4)
